package com.util_code.retrofit;

public interface OneApi {

   /* @GET("data/Android/{perpagenum}/{pagenum}")
    Observable<ApiData<List<AndroidDataBean>>> getGankIoAndroidInfo(@Path("perpagenum") int perpagenum, @Path("pagenum") int pagenum);

    @GET("data/%E7%A6%8F%E5%88%A9/{perpagenum}/{pagenum}")
    Observable<ApiData<List<ImageDataBean>>> getGankIoImageInfo(@Path("perpagenum") int perpagenum, @Path("pagenum") int pagenum);

    @GET("repos/{owner}/{repo}/issues")
    Observable<PageableBean<IssueBean>> getRepositoryIssues(@Path("owner") String owner, @Path("repo") String repo, @Query("state") String state, @Query("sort") String sortBy, @Query("page") int page);

    @GET("user/issues")
    Observable<PageableBean<IssueBean>> getUserIssues(@Query("page") int page, @Query("state") @NonNull String state);

    @GET("repos/{owner}/{repo}/issues/{number}")
    @Headers("Accept: application/vnd.github.VERSION.full+json, application/vnd.github.squirrel-girl-preview")
    Observable<IssueBean> getIssue(@Path("owner") String owner, @Path("repo") String repo, @Path("number") int number);

    @POST("repos/{owner}/{repo}/issues")
    Observable<IssueBean> createIssue(@Path("owner") String owner, @Path("repo") String repo, @Body IssueRequestBean issue);

    @Headers("Content-Length: 0")
    @PUT("repos/{owner}/{repo}/issues/{number}/lock")
    Observable<Response<Boolean>> lockIssue(@Path("owner") String owner, @Path("repo") String repo, @Path("number") int number);

    @DELETE("repos/{owner}/{repo}/issues/{number}/lock")
    Observable<Response<Boolean>> unlockIssue(@Path("owner") String owner, @Path("repo") String repo, @Path("number") int number);

    @PATCH("repos/{owner}/{repo}/issues/comments/{id}")
    @Headers("Accept: application/vnd.github.VERSION.full+json, application/vnd.github.squirrel-girl-preview")
    Observable<IssueBean> editIssueComment(@Path("owner") String owner, @Path("repo") String repo, @Path("id") long id, @Body IssueRequestBean body);

    @HTTP(method = "DELETE", path = "repos/{owner}/{repo}/issues/{number}/assignees", hasBody = true)
    Observable<IssueBean> deleteAssignees(@Path("owner") String owner, @Path("repo") String repo, @Path("number") int number, @Body IssueRequestBean body);*/

}
